﻿using SYH.Domain.Applicaton;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SYH.Domain.ViewModels.Applicaton
{
    public class LoginUserVM
    {
        public LoginUserVM()
        {

        }

        public LoginUserVM(SystemUser user)
        {
            ID = user.ID;
            Name = user.Name;
            this.ChineseName = user.ChineseName;
            this.RID = user.RID;
            this.GroupCode = user.GroupCode;
            this.TimeOut = DateTime.Now;
        }

        public LoginUserVM(LoginUserVM user)
        {
            ID = user.ID;
            Name = user.Name;
            this.ChineseName = user.ChineseName;
            this.RID = user.RID;
            this.TimeOut = DateTime.Now;
            this.GroupCode = user.GroupCode;
        }

        public Guid ID { get; set; }
        /// <summary>
        /// 登录名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 中文名
        /// </summary>
        public string ChineseName { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        public Guid RID { get; set; }
        /// <summary>
        /// 分组编码 
        /// </summary>
        public GroupCode GroupCode { get; set; }

        public DateTime TimeOut { get; set; }
    }
}
